using UnityEngine;
using UnityEngine.UI;
using TEngine;
using System.Collections.Generic;
using GameLogic.Localization;
using System;
using TMPro;

namespace GameLogic
{
	partial class WeaponInformationPanel
    {
        #region
        protected override void OnRefresh()
        {
            base.OnRefresh();
        }
        protected override void RegisterEvent()
        {
            base.RegisterEvent();
        }
        #endregion

        #region
        public void SwitchWeapon(int weaponCfgID)
        {
            var weaponCfg = ConfigSystem.Instance.Tables.TbWeapon.GetOrDefault(weaponCfgID);
            if (weaponCfg == null)
                return;
            m_tmpTextName.text = LLocalizationManager.Instance.GetString(weaponCfg.Name);
        }
        #endregion
    }
}